//vue异步组件和webpack的【代码分块点】功能结合，实现了按需加载
import App from '../App'

//借支
const index = () => import(/* webpackChunkName:'index'*/"../page/index");

export default [{
  path: '/',
  component: App, //顶层路由，对应index.html
  children: [ //二级路由，对应App.vue
    {
      path: "",
      redirect: "/index"
    },
    {
      path: '/index',
      component: index,
      meta: {
        title: '测试'
      }
    }
  ]
}]



